package com.cxf.windex.entity;

import lombok.*;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Table(name = "cxf_pay_info")
@Builder(toBuilder = true)
@AllArgsConstructor(access = AccessLevel.PACKAGE)
@NoArgsConstructor
@Getter
@Setter
public class PayInfo {
    @Id
    private Integer id;

    /**
     * 状态 1支付 2已经退款
     */
    private Integer status;

    /**
     * 订单ID
     */
    @Column(name = "pay_id")
    private String payId;

    /**
     * 添加时间
     */
    private Date addtime;

    /**
     * 退款时间
     */
    private Date repaytime;

    /**
     * 支付金额
     */
    @Column(name = "pay_money")
    private BigDecimal payMoney;

    /**
     * 退款金额
     */
    @Column(name = "repay_money")
    private BigDecimal repayMoney;

    /**
     * 原价
     */
    @Column(name = "total_money")
    private BigDecimal totalMoney;

    /**
     * 支付码
     */
    @Column(name = "pay_code")
    private String payCode;

    /**
     * 支付类型
     */
    @Column(name = "pay_name")
    private String payName;

    /**
     * 用户ID
     */
    private String userid;

    /**
     * 用户昵称
     */
    private String name;

    /**
     * 备注
     */
    private String notes;

    /**
     * 绑定ID
     */
    @Column(name = "bind_id")
    private String bindId;
    /**
     * 支付IP
     */
    @Column(name = "client_ip")
    private String clientIp;
}
